home *** CD-ROM | disk | FTP | other *** search
- function §\x01\x02§()
- {
- return 336 % 511 * 5;
- }
- var §\x01§ = -914 + "\x01\x02"();
- while(true)
- {
- if(eval("\x01") == 766)
- {
- set("\x01",eval("\x01") - 301);
- §§push(true);
- }
- else if(eval("\x01") == 465)
- {
- set("\x01",eval("\x01") - 183);
- if(function §\x01\x02§()
- {
- return 336 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") + 67);
- }
- }
- else if(eval("\x01") == 333)
- {
- set("\x01",eval("\x01") + 391);
- §§push("\x0f");
- }
- else if(eval("\x01") == 593)
- {
- set("\x01",eval("\x01") + 21);
- }
- else
- {
- if(eval("\x01") == 282)
- {
- set("\x01",eval("\x01") + 67);
- set(§§pop(),function §\x01\x02§()
- {
- return 336 % 511 * 5;
- } - 24);
- break;
- }
- if(eval("\x01") == 349)
- {
- set("\x01",eval("\x01") + 265);
- }
- else if(eval("\x01") == 614)
- {
- set("\x01",eval("\x01") - 274);
- §§push("\x0f");
- §§push(1);
- }
- else if(eval("\x01") == 340)
- {
- set("\x01",eval("\x01") - 7);
- var §§pop() = function §\x01\x02§()
- {
- return 336 % 511 * 5;
- };
- }
- else if(eval("\x01") == 724)
- {
- set("\x01",eval("\x01") - 707);
- §§push(eval(function §\x01\x02§()
- {
- return 336 % 511 * 5;
- }));
- }
- else if(eval("\x01") == 17)
- {
- set("\x01",eval("\x01") + 505);
- §§push(!function §\x01\x02§()
- {
- return 336 % 511 * 5;
- });
- }
- else if(eval("\x01") == 522)
- {
- set("\x01",eval("\x01") - 274);
- if(function §\x01\x02§()
- {
- return 336 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") - 108);
- }
- }
- else
- {
- if(eval("\x01") != 248)
- {
- if(eval("\x01") == 140)
- {
- set("\x01",eval("\x01") + 236);
- if(!_global.com)
- {
- _global.com = new Object();
- }
- function §\x01\x02§()
- {
- return 336 % 511 * 5;
- }
- if(!_global.com.evilfree)
- {
- _global.com.evilfree = new Object();
- }
- §§pop();
- if(!_global.com.evilfree.astroidsRevenge)
- {
- _global.com.evilfree.astroidsRevenge = new Object();
- }
- §§pop();
- if(!_global.com.evilfree.astroidsRevenge.BaseCharacter)
- {
- var _loc2_ = com.evilfree.astroidsRevenge.BaseCharacter = function(m, target_mc)
- {
- this.mySqrt = Math.sqrt;
- this.mySin = Math.sin;
- this.myCos = Math.cos;
- this.myAtan = Math.atan2;
- this.radian = 57.29577951308232;
- this.boundsType = "accAway";
- this.main = m;
- this.place_mc(target_mc);
- this.state = "normal";
- this.setVariables();
- }.prototype;
- _loc2_.adjustVolume = function()
- {
- };
- _loc2_.stopSound = function()
- {
- };
- _loc2_.get_mc = function()
- {
- return this.my_mc;
- };
- _loc2_.getTargetDistance = function(myTarget)
- {
- var _loc2_ = this.getTargetXDistance(myTarget);
- var _loc3_ = this.getTargetYDistance(myTarget);
- var _loc4_ = this.mySqrt(_loc2_ * _loc2_ + _loc3_ * _loc3_);
- return _loc4_;
- };
- _loc2_.accelerateToTarget = function()
- {
- var _loc3_ = this.targetX - this.xPos;
- var _loc4_ = this.targetY - this.yPos;
- var _loc2_ = this.mySqrt(_loc3_ * _loc3_ + _loc4_ * _loc4_);
- var _loc7_ = this.myAtan(_loc4_,_loc3_) * this.radian;
- var _loc6_ = this.myCos(_loc7_ / this.radian);
- var _loc5_ = this.mySin(_loc7_ / this.radian);
- if(_loc2_ > 50)
- {
- this.xSpeed += _loc6_ * this.acceleration;
- this.ySpeed += _loc5_ * this.acceleration;
- }
- else
- {
- this.xSpeed += _loc6_ * this.acceleration * (_loc2_ / 50);
- this.ySpeed += _loc5_ * this.acceleration * (_loc2_ / 50);
- }
- };
- _loc2_.setTarget = function(tX, tY)
- {
- this.targetX = tX;
- this.targetY = tY;
- };
- _loc2_.getState = function()
- {
- return this.state;
- };
- _loc2_.place_mc = function(target_mc)
- {
- };
- _loc2_.setVariables = function()
- {
- this.xSpeed = 0;
- this.ySpeed = 0;
- this.acceleration = 0;
- this.friction = 0;
- };
- _loc2_.setVelocity = function(xS, yS)
- {
- this.xSpeed = xS;
- this.ySpeed = yS;
- };
- _loc2_.setPosition = function(x, y)
- {
- this.xPos = x;
- this.yPos = y;
- };
- _loc2_.checkKeys = function()
- {
- };
- _loc2_.getXPos = function()
- {
- return this.xPos;
- };
- _loc2_.getYPos = function()
- {
- return this.yPos;
- };
- _loc2_.getXSpeed = function()
- {
- return this.xSpeed;
- };
- _loc2_.getYSpeed = function()
- {
- return this.ySpeed;
- };
- _loc2_.applyFriction = function()
- {
- this.xSpeed *= this.friction;
- this.ySpeed *= this.friction;
- };
- _loc2_.checkBounds = function()
- {
- if(this.boundsType == "accAway")
- {
- var _loc2_ = 50;
- var _loc3_ = 15;
- if(this.xPos < _loc2_)
- {
- var _loc5_ = this.xPos;
- var _loc4_ = 1 - _loc5_ / _loc2_;
- this.xSpeed += _loc3_ * _loc4_;
- }
- if(this.xPos > this.main.getStageWidth() - _loc2_)
- {
- _loc5_ = this.main.getStageWidth() - this.xPos;
- _loc4_ = 1 - _loc5_ / _loc2_;
- this.xSpeed -= _loc3_ * _loc4_;
- }
- if(this.yPos < _loc2_)
- {
- _loc5_ = this.yPos;
- _loc4_ = 1 - _loc5_ / _loc2_;
- this.ySpeed += _loc3_ * _loc4_;
- }
- if(this.yPos > this.main.getStageHeight() - _loc2_)
- {
- _loc5_ = this.main.getStageHeight() - this.yPos;
- _loc4_ = 1 - _loc5_ / _loc2_;
- this.ySpeed -= _loc3_ * _loc4_;
- }
- }
- else if(this.boundsType == "freeform")
- {
- if(this.main.getMouseDown() == false)
- {
- return undefined;
- }
- if(this.xPos - this.size / 2 > this.main.getStageWidth())
- {
- this.xPos = this.xPos - this.main.getStageWidth() - this.size;
- }
- if(this.xPos + this.size / 2 < 0)
- {
- this.xPos = this.xPos + Stage.width + this.size;
- }
- if(this.yPos - this.size / 2 > this.main.getStageHeight())
- {
- this.yPos = this.yPos - this.main.getStageHeight() - this.size;
- }
- if(this.yPos + this.size / 2 < 0)
- {
- this.yPos = this.yPos + Stage.height + this.size;
- }
- }
- else if(this.boundsType == "bounce")
- {
- if(this.xPos + this.size / 2 > Stage.width)
- {
- this.xPos = Stage.width - this.size / 2;
- this.xSpeed = - this.xSpeed;
- }
- if(this.xPos - this.size / 2 < 0)
- {
- this.xPos = this.size / 2;
- this.xSpeed = - this.xSpeed;
- }
- if(this.yPos + this.size / 2 > Stage.height)
- {
- this.yPos = Stage.height - this.size / 2;
- this.ySpeed = - this.ySpeed;
- }
- if(this.yPos - this.size / 2 < 0)
- {
- this.yPos = this.size / 2;
- this.ySpeed = - this.ySpeed;
- }
- }
- };
- _loc2_.addXSpeed = function(n)
- {
- this.xSpeed += n;
- };
- _loc2_.addYSpeed = function(n)
- {
- this.ySpeed += n;
- };
- _loc2_.destroy = function()
- {
- this.my_mc.removeMovieClip();
- };
- _loc2_.getTargetXDistance = function(bChar)
- {
- var _loc2_ = bChar.getXPos() - this.xPos;
- return _loc2_;
- };
- _loc2_.getTargetYDistance = function(bChar)
- {
- var _loc2_ = bChar.getYPos() - this.yPos;
- return _loc2_;
- };
- _loc2_.animate = function()
- {
- this.checkKeys();
- this.checkBounds();
- this.xPos += this.xSpeed;
- this.yPos += this.ySpeed;
- this.applyFriction();
- this.my_mc._x = this.xPos;
- this.my_mc._y = this.yPos;
- };
- §§push(ASSetPropFlags(com.evilfree.astroidsRevenge.BaseCharacter.prototype,null,1));
- }
- §§pop();
- break;
- }
- if(eval("\x01") == 376)
- {
- set("\x01",eval("\x01") - 376);
- }
- break;
- }
- set("\x01",eval("\x01") - 108);
- }
- }
- }
-